using System.Collections.Generic;
namespace Battle.TimelineLog
{
    /// <summary>
    /// 战斗中的单个Effect实现
    /// </summary>
    public class Effect
    {
        public string SysId { get; private set; }
        public int Value { get; private set; }

        public Effect(string sysId, int value)
        {
            Reset(sysId, value);
        }

        public void Reset(string sysId, int value)
        {
            SysId = sysId;
            Value = value;
        }

        public virtual void Active(List<Fighter> targets)
        {
            for (int i = 0; i < targets.Count; i++)
            {
                Active(targets[i]);
            }
        }
        public virtual void Active(Fighter target)
        {
            if (target == null) return;
            // todo 这要根据不同的效果类型来写对应的效果。
            // target.Hp.Minus(Value);
        }

    }
}